Linux_passwd_shadow_file
Password
- Username (1-32 chars)
x
indicates that it's an encrypted password in the/etc/shadow
file.uid
- UID 0 (zero) is reserved for root and UIDs 1-99 are reserved for other predefined accounts. Further UID 100-999 are reserved by system for administrative and system accounts/groups.gid
- stored in/etc/group
- Comment field.
- User's
~
directory. - Absolute path to command/shell. Doesn't need to be a shell.
Shadow
-
Username.
-
Password : It is your encrypted password. The password should be minimum 8-12 characters long including special characters, digits, lower case alphabetic and more. Usually password format is set to
$id$salt$hashed
, The$id
is the algorithm used On GNU/Linux as follows:$1$
isMD5
$2a$
isBlowfish
$2y$
isBlowfish
$5$
isSHA-256
$6$
isSHA-512
-
Last password change (lastchanged) : Days since Jan 1, 1970 that password was last changed
-
Minimum : The minimum number of days required between password changes i.e. the number of days left before the user is allowed to change his/her password
-
Maximum : The maximum number of days the password is valid (after that user is forced to change his/her password)
-
Warn : The number of days before password is to expire that user is warned that his/her password must be changed
-
Inactive : The number of days after password expires that account is disabled
-
Expire : days since Jan 1, 1970 that account is disabled i.e. an absolute date specifying when the login may no longer be used.